import requestFun from './request'; //引入
const { post, get } = requestFun;

//get方式
export async function fetchData1(token) {
    return get(`/gift/rank/find/moon/cake/rank`, {
        headers: {
            Authorization: token,
        },
    });
}

//post方式
export async function fetchData2(params) {
    return post(`/user/friend/subscribe`, params);
}
